package com.atguigu.gulimall.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.common.vo.MemberRsepVo;
import com.atguigu.gulimall.gulimall.auth.vo.UmsMemberVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-member")
public interface MemberFeign {
    @PostMapping("/member/member/save")
    public R save(@RequestBody UmsMemberVo umsMember);

    @PostMapping("/member/member/login")
    public MemberRsepVo login(@RequestBody UmsMemberVo umsMember);
}
